﻿using System.Linq;
using System.Web.Mvc;
using TeamCityMonitor.Repository;

namespace TeamCityMonitor.Controllers
{ 
    public class CacheStatisticsController : Controller
    {
        private StorageContext db = new StorageContext();

        public ViewResult Index()
        {
            return View(db.CacheStatistics.ToList());
        }
        
        protected override void Dispose(bool disposing)
        {
            db.Dispose();
            base.Dispose(disposing);
        }
    }
}